//项目配置文件
const release = true; 
const debug = !release;
const fwversion = '1.0.0';
const fwplatform = 'car';
const fwdevice = 'app';
//生产环境配置
const fwrootapi = 'http://car2020.yundaoyun.net'; // 必填: api地址
const fwrootweb = 'http://car2020.yundaoyun.net';
const keysecure = 'MIGfMA0xsGCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCb67VUt3hmqYeenOdcGnpWNMFs5ZV31S+IOagetTWXjhisxjZmzoTsQJU5rj/nnsv778Q9XJ0KjXwOud/8fm/qwDLzYz36bbDHyay5D1/lD3GkGzHjhbYWRhQIAQ8sextEE+TtOHpqFP0dd2gHUXMcPANTAL9qdoOFENjvsofkh80k0WDwdIDAQAB';
//开发环境配置
const fwrootapi2 = 'http://localhost:81/devcar'; // 必填: api地址
const fwrootweb2 = 'http://localhost:81/devcar';
const keysecure2 = 'MIGfMA0GCvsSqGSIb3DQEBAQUAA4GNADCBiQKBgQCb67VxvvUt3hmqYeenOdcGnpWNMFs5ZV31S+IOagetTWXjhisxjZmzoTsQJU5rj/nn778Q9XJ0KjXwOxdud/8fm/qwDLzYz36bbDHyay5D1/lD3GkGzHjhbYWRhQIAQ8sextEE+TtOHpqFPx02gHUXMcPANTAL9qdoOFENjofkh8v0k0WDwIDAQAB';
//模拟用户数据
const testUserId = 0;//5》A1910516148; 0》需要登录；
const testUserToken = '';//'42ab46b3eca4b5f04062607fdbbb8624';

//api状态码
const fwcode = {
  nologin: -1,
  successed: 200,
  failed: 0,
}

module.exports = {
  //调试配置
  debug: debug,
  //固定参数
  fwversion: fwversion,
  fwplatform: fwplatform,
  fwdevice: fwdevice,
  //网址配置
  fwrootapi: (release ? fwrootapi : fwrootapi2),
  fwrootweb: (release ? fwrootweb : fwrootweb2),
  keysecret: (release ? keysecure : keysecure2),
  //API代码
  fwcode: fwcode,
  //模拟数据
  testData: {
    testUserId: testUserId,
    testUserToken: testUserToken
  }
}